package org.lex.swing.graph;

import java.util.EventObject;

import org.lex.swing.graph.ProgressModel.Range;


public class ProgressEvent extends EventObject {
	private final Range[] ranges;

	public ProgressEvent(ProgressModel source, Range... ranges) {
		super(source);
		this.ranges = ranges;
	}

	public ProgressModel getModel() {
		return (ProgressModel) super.getSource();
	}

	public Range[] getRanges() {
		return ranges;
	}
}
